package netTools;

import java.net.InetAddress;
import java.util.TimerTask;

public class ReleaseBan extends TimerTask{
	
	public ReleaseBan(InetAddress ipAddr,IPManager ipManager){
		System.out.println("Added to ban");
		this.ip = ipAddr;
		this.ipManager = ipManager;
	}

	@Override
	public void run() {
		ipManager.liftBan(ip);
	}
	
	private InetAddress ip;
	private IPManager ipManager;

}
